<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Predefined Constants</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="mongo.configuration.html">« Runtime Configuration</a></li>
      <li style="float: right;"><a href="mongo.manual.html">Manual »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.mongo.html">Mongo</a></li>
    <li>Predefined Constants</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="mongo.constants" class="appendix">
 <h1>Predefined Constants</h1>

 <p class="simpara">
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
</p>
 <p class="para">
  <dl>

   
    <dt id="constant.mongo-streams">
     <strong><code>MONGO_STREAMS</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      Alias of <strong><code>MONGO_SUPPORTS_STREAMS</code></strong>
     </span>
    </dd>

   
   
    <dt id="constant.mongo-supports-streams">
     <strong><code>MONGO_SUPPORTS_STREAMS</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      1 when compiled against PHP Streams (default since 1.4.0).
     </span>
    </dd>

   
   
    <dt id="constant.mongo-supports-ssl">
     <strong><code>MONGO_SUPPORTS_SSL</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      1 when <a href="" class="xref"></a> is enabled and available.
     </span>
    </dd>

   
   
    <dt id="constant.mongo-supports-auth-mechanism-mongodb-cr">
     <strong><code>MONGO_SUPPORTS_AUTH_MECHANISM_MONGODB_CR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      1 when MongoDB-Challenge/Reponse authentication is compiled in.
     </span>
    </dd>

   
   
    <dt id="constant.mongo-supports-auth-mechanism-mongodb-x509">
     <strong><code>MONGO_SUPPORTS_AUTH_MECHANISM_MONGODB_X509</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      1 when x.509 authentication is compiled in.
     </span>
    </dd>

   
   
    <dt id="constant.mongo-supports-auth-mechanism-gssapi">
     <strong><code>MONGO_SUPPORTS_AUTH_MECHANISM_GSSAPI</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      1 when GSSAPI authentication is compiled in.
     </span>
    </dd>

   
   
    <dt id="constant.mongo-supports-auth-mechanism-plain">
     <strong><code>MONGO_SUPPORTS_AUTH_MECHANISM_PLAIN</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      1 when PLAIN authentication is compiled in.
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-type-io-init">
     <strong><code>MONGO_STREAM_NOTIFY_TYPE_IO_INIT</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-type-log">
     <strong><code>MONGO_STREAM_NOTIFY_TYPE_LOG</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-io-read">
     <strong><code>MONGO_STREAM_NOTIFY_IO_READ</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-io-write">
     <strong><code>MONGO_STREAM_NOTIFY_IO_WRITE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-io-progress">
     <strong><code>MONGO_STREAM_NOTIFY_IO_PROGRESS</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-io-completed">
     <strong><code>MONGO_STREAM_NOTIFY_IO_COMPLETED</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-insert">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_INSERT</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-query">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_QUERY</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-update">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_UPDATE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-delete">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_DELETE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-getmore">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_GETMORE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-killcursor">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_KILLCURSOR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-batchinsert">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_BATCHINSERT</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-response-header">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_RESPONSE_HEADER</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-write-reply">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_WRITE_REPLY</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-cmd-insert">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_CMD_INSERT</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-cmd-update">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_CMD_UPDATE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-cmd-delete">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_CMD_DELETE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.mongo-stream-notify-log-write-batch">
     <strong><code>MONGO_STREAM_NOTIFY_LOG_WRITE_BATCH</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
  </dl>

 </p>
</div>
</div></div></body></html>